/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

export  default class FlexBox extends Component {
    render(){
      return ( <View style={ {height:400,alignItems:'center',justifyContent:'space-around', flexWrap:'wrap',flexDirection:'row',backgroundColor:"darkgray",marginTop:20}}>
				    <View style={ {flex:0,alignSelf:'flex-start', width:40,height:40,backgroundColor:"darkcyan",margin:5}}>
				    <Text style={ {fontSize:16}}>1</Text>
				  </View>
				  <View style={ {width:40,height:40,backgroundColor:"darkcyan",margin:5}}>
				    <Text style={ {fontSize:16}}>2</Text>
				  </View>
				  <View style={ {width:40,height:40,backgroundColor:"darkcyan",margin:5}}>
				    <Text style={ {fontSize:16}}>3</Text>
				  </View>
				  <View style={ {width:40,height:40,backgroundColor:"darkcyan",margin:5}}>
				    <Text style={ {fontSize:16}}>4</Text>
				  </View>
  			</View> )
    }
}  
